package com.fight.strive.sys.modules.rbac.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fight.strive.sys.modules.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * 权限表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Entity
@Table(name = "t_sys_rbac_resource",
        indexes = {
                @Index(columnList = "seq")})
@TableName("t_sys_rbac_resource")
public class RbacResourceEntity extends BaseEntity {

    /**
     * 资源代码；拼音全拼
     */
    @Column(unique = true)
    private String code;

    /**
     * 资源名称
     */
    private String name;

    /**
     * 排序序号
     */
    private Double seq;

}
